<?php

namespace App\Http\Requests\Api;

class SmsCodeRequest extends ApiRequest
{
    public function rules()
    {
        return [
            'mobile' => 'bail|required|mobile_verification',
            'ver_str' => 'required'
        ];
    }

    public function attributes()
    {
        return [
            'ver_str'=>'验证字符串'
        ];
    }

    public function messages()
    {
        return array_merge(parent::messages(),[
            'mobile.mobile_verification'=>'请输入正确的手机号码',
        ]);
    }
}
